class NumberEntry < Entry
  has_one :number_value, :autosave => true

  def data
    if self.number_value.data != nil
      self.number_value.data
    else
      nil
    end
  end
  
  def data=(value)
    if self.number_value != nil
      self.number_value.data = value
    else
      self.number_value = NumberValue.new(:data => value)
    end
  end
  
end
